import { request } from "@/utils/request";
// 获取一级分类的具体信息
export function getTopCategory(id) {
  return request("/category", "get", { id });
}

// 获取二级分类的筛选信息 getSubCategoryFilterById
export function getSubCategoryList(id) {
  return request("/category/sub/filter", "get", { id });
}

// 获取二级分类商品列表
export function getGoodsList(reqParams) {
  return request("/category/goods", "post", reqParams);
}
